package com.visizen.wisdomclass.server.model;

import java.util.ArrayList;
import java.util.List;

public class WcCourseSchedualExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public WcCourseSchedualExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIDIsNull() {
            addCriterion("ID is null");
            return (Criteria) this;
        }

        public Criteria andIDIsNotNull() {
            addCriterion("ID is not null");
            return (Criteria) this;
        }

        public Criteria andIDEqualTo(Long value) {
            addCriterion("ID =", value, "ID");
            return (Criteria) this;
        }

        public Criteria andIDNotEqualTo(Long value) {
            addCriterion("ID <>", value, "ID");
            return (Criteria) this;
        }

        public Criteria andIDGreaterThan(Long value) {
            addCriterion("ID >", value, "ID");
            return (Criteria) this;
        }

        public Criteria andIDGreaterThanOrEqualTo(Long value) {
            addCriterion("ID >=", value, "ID");
            return (Criteria) this;
        }

        public Criteria andIDLessThan(Long value) {
            addCriterion("ID <", value, "ID");
            return (Criteria) this;
        }

        public Criteria andIDLessThanOrEqualTo(Long value) {
            addCriterion("ID <=", value, "ID");
            return (Criteria) this;
        }

        public Criteria andIDIn(List<Long> values) {
            addCriterion("ID in", values, "ID");
            return (Criteria) this;
        }

        public Criteria andIDNotIn(List<Long> values) {
            addCriterion("ID not in", values, "ID");
            return (Criteria) this;
        }

        public Criteria andIDBetween(Long value1, Long value2) {
            addCriterion("ID between", value1, value2, "ID");
            return (Criteria) this;
        }

        public Criteria andIDNotBetween(Long value1, Long value2) {
            addCriterion("ID not between", value1, value2, "ID");
            return (Criteria) this;
        }

        public Criteria andCLASS_IDIsNull() {
            addCriterion("CLASS_ID is null");
            return (Criteria) this;
        }

        public Criteria andCLASS_IDIsNotNull() {
            addCriterion("CLASS_ID is not null");
            return (Criteria) this;
        }

        public Criteria andCLASS_IDEqualTo(Long value) {
            addCriterion("CLASS_ID =", value, "CLASS_ID");
            return (Criteria) this;
        }

        public Criteria andCLASS_IDNotEqualTo(Long value) {
            addCriterion("CLASS_ID <>", value, "CLASS_ID");
            return (Criteria) this;
        }

        public Criteria andCLASS_IDGreaterThan(Long value) {
            addCriterion("CLASS_ID >", value, "CLASS_ID");
            return (Criteria) this;
        }

        public Criteria andCLASS_IDGreaterThanOrEqualTo(Long value) {
            addCriterion("CLASS_ID >=", value, "CLASS_ID");
            return (Criteria) this;
        }

        public Criteria andCLASS_IDLessThan(Long value) {
            addCriterion("CLASS_ID <", value, "CLASS_ID");
            return (Criteria) this;
        }

        public Criteria andCLASS_IDLessThanOrEqualTo(Long value) {
            addCriterion("CLASS_ID <=", value, "CLASS_ID");
            return (Criteria) this;
        }

        public Criteria andCLASS_IDIn(List<Long> values) {
            addCriterion("CLASS_ID in", values, "CLASS_ID");
            return (Criteria) this;
        }

        public Criteria andCLASS_IDNotIn(List<Long> values) {
            addCriterion("CLASS_ID not in", values, "CLASS_ID");
            return (Criteria) this;
        }

        public Criteria andCLASS_IDBetween(Long value1, Long value2) {
            addCriterion("CLASS_ID between", value1, value2, "CLASS_ID");
            return (Criteria) this;
        }

        public Criteria andCLASS_IDNotBetween(Long value1, Long value2) {
            addCriterion("CLASS_ID not between", value1, value2, "CLASS_ID");
            return (Criteria) this;
        }

        public Criteria andW0IsNull() {
            addCriterion("W0 is null");
            return (Criteria) this;
        }

        public Criteria andW0IsNotNull() {
            addCriterion("W0 is not null");
            return (Criteria) this;
        }

        public Criteria andW0EqualTo(Long value) {
            addCriterion("W0 =", value, "w0");
            return (Criteria) this;
        }

        public Criteria andW0NotEqualTo(Long value) {
            addCriterion("W0 <>", value, "w0");
            return (Criteria) this;
        }

        public Criteria andW0GreaterThan(Long value) {
            addCriterion("W0 >", value, "w0");
            return (Criteria) this;
        }

        public Criteria andW0GreaterThanOrEqualTo(Long value) {
            addCriterion("W0 >=", value, "w0");
            return (Criteria) this;
        }

        public Criteria andW0LessThan(Long value) {
            addCriterion("W0 <", value, "w0");
            return (Criteria) this;
        }

        public Criteria andW0LessThanOrEqualTo(Long value) {
            addCriterion("W0 <=", value, "w0");
            return (Criteria) this;
        }

        public Criteria andW0In(List<Long> values) {
            addCriterion("W0 in", values, "w0");
            return (Criteria) this;
        }

        public Criteria andW0NotIn(List<Long> values) {
            addCriterion("W0 not in", values, "w0");
            return (Criteria) this;
        }

        public Criteria andW0Between(Long value1, Long value2) {
            addCriterion("W0 between", value1, value2, "w0");
            return (Criteria) this;
        }

        public Criteria andW0NotBetween(Long value1, Long value2) {
            addCriterion("W0 not between", value1, value2, "w0");
            return (Criteria) this;
        }

        public Criteria andW1IsNull() {
            addCriterion("W1 is null");
            return (Criteria) this;
        }

        public Criteria andW1IsNotNull() {
            addCriterion("W1 is not null");
            return (Criteria) this;
        }

        public Criteria andW1EqualTo(Long value) {
            addCriterion("W1 =", value, "w1");
            return (Criteria) this;
        }

        public Criteria andW1NotEqualTo(Long value) {
            addCriterion("W1 <>", value, "w1");
            return (Criteria) this;
        }

        public Criteria andW1GreaterThan(Long value) {
            addCriterion("W1 >", value, "w1");
            return (Criteria) this;
        }

        public Criteria andW1GreaterThanOrEqualTo(Long value) {
            addCriterion("W1 >=", value, "w1");
            return (Criteria) this;
        }

        public Criteria andW1LessThan(Long value) {
            addCriterion("W1 <", value, "w1");
            return (Criteria) this;
        }

        public Criteria andW1LessThanOrEqualTo(Long value) {
            addCriterion("W1 <=", value, "w1");
            return (Criteria) this;
        }

        public Criteria andW1In(List<Long> values) {
            addCriterion("W1 in", values, "w1");
            return (Criteria) this;
        }

        public Criteria andW1NotIn(List<Long> values) {
            addCriterion("W1 not in", values, "w1");
            return (Criteria) this;
        }

        public Criteria andW1Between(Long value1, Long value2) {
            addCriterion("W1 between", value1, value2, "w1");
            return (Criteria) this;
        }

        public Criteria andW1NotBetween(Long value1, Long value2) {
            addCriterion("W1 not between", value1, value2, "w1");
            return (Criteria) this;
        }

        public Criteria andW2IsNull() {
            addCriterion("W2 is null");
            return (Criteria) this;
        }

        public Criteria andW2IsNotNull() {
            addCriterion("W2 is not null");
            return (Criteria) this;
        }

        public Criteria andW2EqualTo(Long value) {
            addCriterion("W2 =", value, "w2");
            return (Criteria) this;
        }

        public Criteria andW2NotEqualTo(Long value) {
            addCriterion("W2 <>", value, "w2");
            return (Criteria) this;
        }

        public Criteria andW2GreaterThan(Long value) {
            addCriterion("W2 >", value, "w2");
            return (Criteria) this;
        }

        public Criteria andW2GreaterThanOrEqualTo(Long value) {
            addCriterion("W2 >=", value, "w2");
            return (Criteria) this;
        }

        public Criteria andW2LessThan(Long value) {
            addCriterion("W2 <", value, "w2");
            return (Criteria) this;
        }

        public Criteria andW2LessThanOrEqualTo(Long value) {
            addCriterion("W2 <=", value, "w2");
            return (Criteria) this;
        }

        public Criteria andW2In(List<Long> values) {
            addCriterion("W2 in", values, "w2");
            return (Criteria) this;
        }

        public Criteria andW2NotIn(List<Long> values) {
            addCriterion("W2 not in", values, "w2");
            return (Criteria) this;
        }

        public Criteria andW2Between(Long value1, Long value2) {
            addCriterion("W2 between", value1, value2, "w2");
            return (Criteria) this;
        }

        public Criteria andW2NotBetween(Long value1, Long value2) {
            addCriterion("W2 not between", value1, value2, "w2");
            return (Criteria) this;
        }

        public Criteria andW3IsNull() {
            addCriterion("W3 is null");
            return (Criteria) this;
        }

        public Criteria andW3IsNotNull() {
            addCriterion("W3 is not null");
            return (Criteria) this;
        }

        public Criteria andW3EqualTo(Long value) {
            addCriterion("W3 =", value, "w3");
            return (Criteria) this;
        }

        public Criteria andW3NotEqualTo(Long value) {
            addCriterion("W3 <>", value, "w3");
            return (Criteria) this;
        }

        public Criteria andW3GreaterThan(Long value) {
            addCriterion("W3 >", value, "w3");
            return (Criteria) this;
        }

        public Criteria andW3GreaterThanOrEqualTo(Long value) {
            addCriterion("W3 >=", value, "w3");
            return (Criteria) this;
        }

        public Criteria andW3LessThan(Long value) {
            addCriterion("W3 <", value, "w3");
            return (Criteria) this;
        }

        public Criteria andW3LessThanOrEqualTo(Long value) {
            addCriterion("W3 <=", value, "w3");
            return (Criteria) this;
        }

        public Criteria andW3In(List<Long> values) {
            addCriterion("W3 in", values, "w3");
            return (Criteria) this;
        }

        public Criteria andW3NotIn(List<Long> values) {
            addCriterion("W3 not in", values, "w3");
            return (Criteria) this;
        }

        public Criteria andW3Between(Long value1, Long value2) {
            addCriterion("W3 between", value1, value2, "w3");
            return (Criteria) this;
        }

        public Criteria andW3NotBetween(Long value1, Long value2) {
            addCriterion("W3 not between", value1, value2, "w3");
            return (Criteria) this;
        }

        public Criteria andW4IsNull() {
            addCriterion("W4 is null");
            return (Criteria) this;
        }

        public Criteria andW4IsNotNull() {
            addCriterion("W4 is not null");
            return (Criteria) this;
        }

        public Criteria andW4EqualTo(Long value) {
            addCriterion("W4 =", value, "w4");
            return (Criteria) this;
        }

        public Criteria andW4NotEqualTo(Long value) {
            addCriterion("W4 <>", value, "w4");
            return (Criteria) this;
        }

        public Criteria andW4GreaterThan(Long value) {
            addCriterion("W4 >", value, "w4");
            return (Criteria) this;
        }

        public Criteria andW4GreaterThanOrEqualTo(Long value) {
            addCriterion("W4 >=", value, "w4");
            return (Criteria) this;
        }

        public Criteria andW4LessThan(Long value) {
            addCriterion("W4 <", value, "w4");
            return (Criteria) this;
        }

        public Criteria andW4LessThanOrEqualTo(Long value) {
            addCriterion("W4 <=", value, "w4");
            return (Criteria) this;
        }

        public Criteria andW4In(List<Long> values) {
            addCriterion("W4 in", values, "w4");
            return (Criteria) this;
        }

        public Criteria andW4NotIn(List<Long> values) {
            addCriterion("W4 not in", values, "w4");
            return (Criteria) this;
        }

        public Criteria andW4Between(Long value1, Long value2) {
            addCriterion("W4 between", value1, value2, "w4");
            return (Criteria) this;
        }

        public Criteria andW4NotBetween(Long value1, Long value2) {
            addCriterion("W4 not between", value1, value2, "w4");
            return (Criteria) this;
        }

        public Criteria andW5IsNull() {
            addCriterion("W5 is null");
            return (Criteria) this;
        }

        public Criteria andW5IsNotNull() {
            addCriterion("W5 is not null");
            return (Criteria) this;
        }

        public Criteria andW5EqualTo(Long value) {
            addCriterion("W5 =", value, "w5");
            return (Criteria) this;
        }

        public Criteria andW5NotEqualTo(Long value) {
            addCriterion("W5 <>", value, "w5");
            return (Criteria) this;
        }

        public Criteria andW5GreaterThan(Long value) {
            addCriterion("W5 >", value, "w5");
            return (Criteria) this;
        }

        public Criteria andW5GreaterThanOrEqualTo(Long value) {
            addCriterion("W5 >=", value, "w5");
            return (Criteria) this;
        }

        public Criteria andW5LessThan(Long value) {
            addCriterion("W5 <", value, "w5");
            return (Criteria) this;
        }

        public Criteria andW5LessThanOrEqualTo(Long value) {
            addCriterion("W5 <=", value, "w5");
            return (Criteria) this;
        }

        public Criteria andW5In(List<Long> values) {
            addCriterion("W5 in", values, "w5");
            return (Criteria) this;
        }

        public Criteria andW5NotIn(List<Long> values) {
            addCriterion("W5 not in", values, "w5");
            return (Criteria) this;
        }

        public Criteria andW5Between(Long value1, Long value2) {
            addCriterion("W5 between", value1, value2, "w5");
            return (Criteria) this;
        }

        public Criteria andW5NotBetween(Long value1, Long value2) {
            addCriterion("W5 not between", value1, value2, "w5");
            return (Criteria) this;
        }

        public Criteria andW6IsNull() {
            addCriterion("W6 is null");
            return (Criteria) this;
        }

        public Criteria andW6IsNotNull() {
            addCriterion("W6 is not null");
            return (Criteria) this;
        }

        public Criteria andW6EqualTo(Long value) {
            addCriterion("W6 =", value, "w6");
            return (Criteria) this;
        }

        public Criteria andW6NotEqualTo(Long value) {
            addCriterion("W6 <>", value, "w6");
            return (Criteria) this;
        }

        public Criteria andW6GreaterThan(Long value) {
            addCriterion("W6 >", value, "w6");
            return (Criteria) this;
        }

        public Criteria andW6GreaterThanOrEqualTo(Long value) {
            addCriterion("W6 >=", value, "w6");
            return (Criteria) this;
        }

        public Criteria andW6LessThan(Long value) {
            addCriterion("W6 <", value, "w6");
            return (Criteria) this;
        }

        public Criteria andW6LessThanOrEqualTo(Long value) {
            addCriterion("W6 <=", value, "w6");
            return (Criteria) this;
        }

        public Criteria andW6In(List<Long> values) {
            addCriterion("W6 in", values, "w6");
            return (Criteria) this;
        }

        public Criteria andW6NotIn(List<Long> values) {
            addCriterion("W6 not in", values, "w6");
            return (Criteria) this;
        }

        public Criteria andW6Between(Long value1, Long value2) {
            addCriterion("W6 between", value1, value2, "w6");
            return (Criteria) this;
        }

        public Criteria andW6NotBetween(Long value1, Long value2) {
            addCriterion("W6 not between", value1, value2, "w6");
            return (Criteria) this;
        }

        public Criteria andFLAGIsNull() {
            addCriterion("FLAG is null");
            return (Criteria) this;
        }

        public Criteria andFLAGIsNotNull() {
            addCriterion("FLAG is not null");
            return (Criteria) this;
        }

        public Criteria andFLAGEqualTo(Integer value) {
            addCriterion("FLAG =", value, "FLAG");
            return (Criteria) this;
        }

        public Criteria andFLAGNotEqualTo(Integer value) {
            addCriterion("FLAG <>", value, "FLAG");
            return (Criteria) this;
        }

        public Criteria andFLAGGreaterThan(Integer value) {
            addCriterion("FLAG >", value, "FLAG");
            return (Criteria) this;
        }

        public Criteria andFLAGGreaterThanOrEqualTo(Integer value) {
            addCriterion("FLAG >=", value, "FLAG");
            return (Criteria) this;
        }

        public Criteria andFLAGLessThan(Integer value) {
            addCriterion("FLAG <", value, "FLAG");
            return (Criteria) this;
        }

        public Criteria andFLAGLessThanOrEqualTo(Integer value) {
            addCriterion("FLAG <=", value, "FLAG");
            return (Criteria) this;
        }

        public Criteria andFLAGIn(List<Integer> values) {
            addCriterion("FLAG in", values, "FLAG");
            return (Criteria) this;
        }

        public Criteria andFLAGNotIn(List<Integer> values) {
            addCriterion("FLAG not in", values, "FLAG");
            return (Criteria) this;
        }

        public Criteria andFLAGBetween(Integer value1, Integer value2) {
            addCriterion("FLAG between", value1, value2, "FLAG");
            return (Criteria) this;
        }

        public Criteria andFLAGNotBetween(Integer value1, Integer value2) {
            addCriterion("FLAG not between", value1, value2, "FLAG");
            return (Criteria) this;
        }

        public Criteria andTERM_IDIsNull() {
            addCriterion("TERM_ID is null");
            return (Criteria) this;
        }

        public Criteria andTERM_IDIsNotNull() {
            addCriterion("TERM_ID is not null");
            return (Criteria) this;
        }

        public Criteria andTERM_IDEqualTo(Long value) {
            addCriterion("TERM_ID =", value, "TERM_ID");
            return (Criteria) this;
        }

        public Criteria andTERM_IDNotEqualTo(Long value) {
            addCriterion("TERM_ID <>", value, "TERM_ID");
            return (Criteria) this;
        }

        public Criteria andTERM_IDGreaterThan(Long value) {
            addCriterion("TERM_ID >", value, "TERM_ID");
            return (Criteria) this;
        }

        public Criteria andTERM_IDGreaterThanOrEqualTo(Long value) {
            addCriterion("TERM_ID >=", value, "TERM_ID");
            return (Criteria) this;
        }

        public Criteria andTERM_IDLessThan(Long value) {
            addCriterion("TERM_ID <", value, "TERM_ID");
            return (Criteria) this;
        }

        public Criteria andTERM_IDLessThanOrEqualTo(Long value) {
            addCriterion("TERM_ID <=", value, "TERM_ID");
            return (Criteria) this;
        }

        public Criteria andTERM_IDIn(List<Long> values) {
            addCriterion("TERM_ID in", values, "TERM_ID");
            return (Criteria) this;
        }

        public Criteria andTERM_IDNotIn(List<Long> values) {
            addCriterion("TERM_ID not in", values, "TERM_ID");
            return (Criteria) this;
        }

        public Criteria andTERM_IDBetween(Long value1, Long value2) {
            addCriterion("TERM_ID between", value1, value2, "TERM_ID");
            return (Criteria) this;
        }

        public Criteria andTERM_IDNotBetween(Long value1, Long value2) {
            addCriterion("TERM_ID not between", value1, value2, "TERM_ID");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}